package bairui.international.console.web.controller.wrap.property;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

import com.lianjing.sh.project.config.web.Project_Config_Web_PageTemplate;
import com.lianjing.sh.spring.web.controller.base.action.Action;
import com.lianjing.sh.spring.web.controller.enhance.module.context.ModuleContext;
import com.lianjing.sh.spring.web.controller.enhance.navigations.context.NavigationContext;
import com.lianjing.sh.spring.web.controller.enhance.tab.TabContext;

import bairui.international.console.web.controller.wrap.C_Wrap_Index_Left;
import bairui.international.console.web.controller.wrap.Tab_Wrap;

/**
 *
 * 列表
 *
 * @generated
 * 
 * @see STest_C_Wrap_Property_Page_PageAccess 测试
 *
 */
@Controller
public class C_Wrap_Property_Page_PageAccess
 extends SC_Wrap_Property_Page_PageAccess 
{
	
	
	/**
	 * 访问分页列表页面
	 */
	@Action(PageAccess.class)
	@GetMapping(PageAccess.RequestMappingValue)
	public ModelAndView pageAccess(
		ModelMap map, HttpServletRequest request, TabContext tabContext,
		NavigationContext navigationContext, ModuleContext moduleContext
	) throws Exception {
		/* 侧边栏 */
		C_Wrap_Index_Left.importPage(map);
		/* Tab */
		Tab_Wrap.tab(tabContext);
		/* 模块 */
		moduleContext
			.addModule(module_Page.module(
					new C_Wrap_Property_Page_Page.Page.Operate(){
					}, 
					new C_Wrap_Property_Add_AddAccess.AddAccess.Operate(){
					}, 
					new C_Wrap_Property_Import_ExcelImport.ExcelImport.Operate(){
					}, 
					new C_Wrap_Property_Export_ExcelExport.ExcelExport.Operate(){
					}, 
					new C_Wrap_Property_Detail_DetailAccess.DetailAccess.Operate(){
						@Override public Object getId() { return "{{:id}}"; }
					}, 
					new C_Wrap_Property_Edit_EditAccess.EditAccess.Operate(){
						@Override public Object getId() { return "{{:id}}"; }
					}, 
					new C_Wrap_Property_Delete_Delete.Delete.Operate(){
						@Override public Object getId() { return "{{:id}}"; }
					}, 
					new C_Wrap_Property_Publish_Submit.Submit.Operate(){
						@Override public Object getId() { return "{{:id}}"; }
					}, 
					new C_Wrap_Property_Up_Submit.Submit.Operate(){
						@Override public Object getId() { return "{{:id}}"; }
					}, 
					new C_Wrap_Property_Down_Submit.Submit.Operate(){
						@Override public Object getId() { return "{{:id}}"; }
					}
				));
		//
		return Project_Config_Web_PageTemplate.Admin_Common(request);
	}
	

}
